package org.dbwebx.flex.control.menu
{

	public class MenuItemDescription
	{
		public function MenuItemDescription(menuAction:String, icon:Class=null, securityAction:int=-1)
		{
			if (!menuAction)
			{
				throw new Error("Action can't be null");
			}
			_action=menuAction;
			_icon=icon;
			_securityAction=securityAction;
		}

		/** 
		 * action = actionName
		 */
		private var _action:String;

		private var _icon:Class;

		/** @private permissionAction to check Security Profiles */
		private var _securityAction:int=-1;

		public function get action():String
		{
			return _action;
		}

		public function set action(value:String):void
		{
			_action=value;
		}

		public function get icon():Class
		{
			return _icon;
		}

		public function set icon(value:Class):void
		{
			_icon=value;
		}

		/**
		 * permissionAction to check Security Profiles
		 */
		public function get securityAction():int
		{
			return _securityAction;
		}

		/**
		 * @private
		 */
		public function set securityAction(value:int):void
		{
			_securityAction=value;
		}

	}
}